package com.netjava.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * User entity.
 * 用户
 * @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer userId;
	private String userName;//用户名
	private String realName;//用户真实姓名
	private String email;//用户邮箱
	private Integer userPhone;//用户的手机号码
	private String sex;//用户性别
	private String userAddress;//用户地址
	private Integer type=2;//用户类型,管理员(0),机器人(1)，注册会员(2)
	private String password;//密码
	private String other1;//备用字段
	private Card card;
	private Set aucrecords = new HashSet(0);
	private Set endauctions = new HashSet(0);
	private Set notices = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String userName, String email, Integer userPhone, String sex,
			String userAddress, Integer type, String password) {
		this.userName = userName;
		this.email = email;
		this.userPhone = userPhone;
		this.sex = sex;
		this.userAddress = userAddress;
		this.type = type;
		this.password = password;
	}

	/** full constructor */
	public User(String userName, String email, Integer userPhone, String sex,
			String userAddress, Integer type, String password, String other1,
			Card card, Set aucrecords, Set endauctions, Set notices) {
		this.userName = userName;
		this.email = email;
		this.userPhone = userPhone;
		this.sex = sex;
		this.userAddress = userAddress;
		this.type = type;
		this.password = password;
		this.other1 = other1;
		this.card = card;
		this.aucrecords = aucrecords;
		this.endauctions = endauctions;
		this.notices = notices;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getUserPhone() {
		return this.userPhone;
	}

	public void setUserPhone(Integer userPhone) {
		this.userPhone = userPhone;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getUserAddress() {
		return this.userAddress;
	}

	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getOther1() {
		return this.other1;
	}

	public void setOther1(String other1) {
		this.other1 = other1;
	}

	public Card getCard() {
		return card;
	}

	public void setCard(Card card) {
		this.card = card;
	}

	public Set getAucrecords() {
		return this.aucrecords;
	}

	public void setAucrecords(Set aucrecords) {
		this.aucrecords = aucrecords;
	}

	public Set getEndauctions() {
		return this.endauctions;
	}

	public void setEndauctions(Set endauctions) {
		this.endauctions = endauctions;
	}

	public Set getNotices() {
		return this.notices;
	}

	public void setNotices(Set notices) {
		this.notices = notices;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}
	
}